package exrefelect;

/**
 * @author: knowno
 * @create: 2025-09-17 14:28
 * @Version 1.0
 **/
public class Person {
    public Person() {
        System.out.println("private Person");
    }
    public Person(String name) {
        this.name = name;
    }
    private String name;
    public int age;

    //私有的方法
    private void show() {
        System.out.println("private show");
    }

    //生成toString方法
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                '}';
    }

    //生成一个静态的方法
    public static void test() {
        System.out.println("test");
    }
}
